package com.qingcloud.adminbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingcloud.adminbackend.entity.eid.SysEquipmentidList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 自动生成设备编号列表 Mapper 接口
 * </p>
 *
 * @author wangjinnan
 * @since 2019-04-17
 */
public interface SysEquipmentidListMapper extends BaseMapper<SysEquipmentidList> {

    /**
     * 根据产品类型查询最大设备编号
     */
    String findMaxByProduct(@Param("product") int product);

    /**
     * 批量保存数据
     *
     * @param eidList
     */
    void insertBatch(@Param("pojos") List<SysEquipmentidList> eidList);

    /**
     * 根据设备编号模糊查询批次编号
     *
     * @param equipmentId
     * @return
     */
    List<String> findBatchIdLikeEquipmentId(@Param("equipmentId") String equipmentId);
}
